package TestesAutomatizados;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.JUnitCore;

import Utils.TransformaStringEmInt;

public class TesteTransformaStringEmInt {

	@Test
	public void test() {
		Integer valorUm = 1;
		Integer umEmString = TransformaStringEmInt.transformaTextoEmInt("1");
		assertEquals(valorUm, umEmString);
		
		Integer valorZero = 0;
		Integer zeroEmString = TransformaStringEmInt.transformaTextoEmInt("0");
		assertEquals(valorZero, zeroEmString);
		
		Integer valorMenosUm = -1;
		Integer menosUmEmString = TransformaStringEmInt.transformaTextoEmInt("-1");
		assertEquals(valorMenosUm, menosUmEmString);
	}
	
	public static void main(String[] args) {
		JUnitCore.runClasses(TesteTransformaStringEmInt.class);
	}
}
